C program to print natural numbers from 1 to n using while loop